//
//  IMB_SaveCameraInfo.m
//  BabyNow
//
//  Created by 刘泽琛 on 14-5-12.
//  Copyright (c) 2014年 iMobile. All rights reserved.
//

#import "IMB_SaveCameraInfo.h"

static IMB_SaveCameraInfo *sharedSaveCamera = nil;

@implementation IMB_SaveCameraInfo

+ (IMB_SaveCameraInfo *)sharedSaveCameraInfo {
    @synchronized(self){
        if(sharedSaveCamera == nil){
            sharedSaveCamera = [[self alloc] init];
        }
    }
    return sharedSaveCamera;
}

+ (id)allocWithZone:(NSZone *)zone
{
    @synchronized (self) {
        if (sharedSaveCamera == nil) {
            sharedSaveCamera = [super allocWithZone:zone];
            return sharedSaveCamera;
        }
    }
    return nil;
}

- (id)copyWithZone:(NSZone *)zone
{
    return self;
}

- (id)init
{
    @synchronized(self) {
        if (self = [super init]) {
            //
        }
    }
    return self;
}
@end
